import java.util.Scanner;

public class TempHomework
{
    public static double max2(double num1,double num2)
    {
        return num1>num2 ? num1:num2;
    }

    public static double max3(double num1,double num2,double num3)
    {
        return num1>max2(num2,num3) ? num1 : max2(num2,num3);
    }

    public static void getPassKey()
    {
        Scanner input = new Scanner(System.in);
        int flag = 0;
        int passKey=1433223;
        while(flag<3 && input.hasNextInt())
        {
            flag++;
            if(input.nextInt() == passKey)
            {
                System.out.println("登陆成功!");
                return;
            }
            if(flag==3)
            {
                System.out.println("次数封底，程序退出！~");
                return;
            }
            System.out.println("输入错误，请重新输入");
        }
    }

    public static void main(String[] args) {
        double num1 = 1433223;
        double num2 = 3.1415926;
        double num3 = 1024;
        System.out.println(max3(num1, num2, num3));
        getPassKey();
    }
}
